﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DAL;
using Entities;
using BUS;
using Utility;

public partial class Administrator_doanhnghiep_register : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    protected void bt_dangky_Click(object sender, EventArgs e)
    {
            Tbl_DoanhNghiep_Entities doanhnghiep = new Tbl_DoanhNghiep_Entities();
            doanhnghiep.MaDN = txt_madoanhnghiep.Text;
            doanhnghiep.TenDN = txt_tendoanhnghiep.Text;
            doanhnghiep.DiaChi = txt_diachi.Text;
            doanhnghiep.SDT = txt_dienthoai.Text;
            doanhnghiep.WebSite = txt_website.Text;
            doanhnghiep.GioiThieu = FreeTextBox1.Text;
            doanhnghiep.TaiKhoan = txt_tentaikhoan.Text;
            doanhnghiep.MatKhau = txt_matkhau1.Text;
            doanhnghiep.SoDuTaiKhoan = 0;
            doanhnghiep.LoaiTK = 2;
            int stt = Tbl_DoanhNghiep_BUS.Insert(doanhnghiep);
            Response.Redirect("~/Administrator/doanhnghiep.aspx");
    }

}
